home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Source / GNU / libg++ / Makefile.in < prev    next >
Makefile  |  1994-02-15  |  32KB  |  1,130 lines

  1. #
  2. # Makefile for directory with subdirs to build.
  3. #   Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation
  4. #
  5. # This file is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation; either version 2 of the License, or
  8. # (at your option) any later version.
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the Free Software
  15. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  16. #
  17.  
  18. srcdir = .
  19.  
  20. #prefix = /usr/local
  21. prefix = /NextDeveloper/Headers
  22.  
  23. exec_prefix = /usr/local
  24. bindir = $(exec_prefix)/bin
  25. libdir = $(DSTROOT)/usr/lib
  26. tooldir = $(exec_prefix)/$(target)
  27.  
  28. program_transform_name =
  29.  
  30. datadir = $(prefix)/lib
  31. mandir = $(prefix)/man
  32. man1dir = $(mandir)/man1
  33. man2dir = $(mandir)/man2
  34. man3dir = $(mandir)/man3
  35. man4dir = $(mandir)/man4
  36. man5dir = $(mandir)/man5
  37. man6dir = $(mandir)/man6
  38. man7dir = $(mandir)/man7
  39. man8dir = $(mandir)/man8
  40. man9dir = $(mandir)/man9
  41. infodir = $(prefix)/info
  42. includedir = $(prefix)/include
  43. docdir = $(datadir)/doc
  44.  
  45. SHELL = /bin/sh
  46.  
  47. INSTALL = $${srcroot}/install.sh -c
  48. INSTALL_PROGRAM = $(INSTALL)
  49. INSTALL_DATA = $(INSTALL) -m 644
  50. INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
  51.  
  52. AS = as
  53. AR = ar
  54. AR_FLAGS = rc
  55. CC = cc
  56.  
  57. # We don't specify -g -O because many compilers don't support -g -O,
  58. # and/or -O is broken in and of itself.
  59. CFLAGS = -g
  60.  
  61. CXX = cc++
  62.  
  63. # Use -O to stress test the compiler.
  64. CXXFLAGS = -g -O
  65.  
  66. RANLIB = ranlib
  67. NM = nm
  68. MUNCH_NM = $(NM)
  69. # Not plain GZIP, since gzip looks there for extra command-line options.
  70. GZIPPROG = gzip
  71.  
  72. BISON = bison -y
  73. LEX = `if [ -f $${rootme}/flex/flex ] ; \
  74.     then echo $${rootme}/flex/flex ; \
  75.     else echo flex ; fi`
  76.  
  77. M4 = `if [ -f $${rootme}/m4/m4 ] ; \
  78.     then echo $${rootme}/m4/m4 ; \
  79.     else echo m4 ; fi`
  80.  
  81. MAKEINFO = `if [ -f $${rootme}/texinfo/makeinfo/makeinfo ] ; \
  82.     then echo $${rootme}/texinfo/makeinfo/makeinfo ; \
  83.     else echo makeinfo ; fi`
  84.  
  85. # This just becomes part of the MAKEINFO definition passed down to
  86. # sub-makes.  It lets flags be given on the command line while still
  87. # using the makeinfo from the object tree.
  88. MAKEINFOFLAGS =
  89.  
  90. EXPECT = `if [ -f $${rootme}/expect/expect ] ; \
  91.     then echo $${rootme}/expect/expect ; \
  92.     else echo expect ; fi`
  93.  
  94. RUNTEST = `if [ -f $${srcroot}/dejagnu/runtest ] ; \
  95.     then echo $${srcroot}/dejagnu/runtest ; \
  96.     else echo runtest ; fi`
  97.  
  98.  
  99. # libraries that may need to be augmented on a system-by-system basis
  100. X11_LIB = -lX11
  101.  
  102. # compilers to use to create programs which must be run in the build
  103. # environment.
  104. CC_FOR_BUILD = $(CC)
  105. CXX_FOR_BUILD = $(CXX)
  106.  
  107. SUBDIRS = "this is set via configure, don't edit this"
  108. OTHERS = 
  109.  
  110. ALL = all.normal
  111. INSTALL_TARGET = install-dirs \
  112.     $(INSTALL_MODULES) \
  113.     $(INSTALL_TARGET_MODULES) \
  114.     $(INSTALL_X11_MODULES) \
  115.     install-gcc
  116.  
  117. CC_FOR_TARGET = ` \
  118.   if [ -f $${rootme}/gcc/Makefile ] ; then \
  119.     echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
  120.   else \
  121.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  122.       echo $(CC); \
  123.     else \
  124.       t='$(program_transform_name)'; echo $(CC) | sed -e '' $$t; \
  125.     fi; \
  126.   fi`
  127.  
  128.  
  129. CXX_FOR_TARGET = ` \
  130.   if [ -f $${rootme}/gcc/Makefile ] ; then \
  131.     echo $${rootme}/gcc/xgcc -B$${rootme}/gcc/; \
  132.   else \
  133.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  134.       echo $(CXX); \
  135.     else \
  136.       t='$(program_transform_name)'; echo $(CXX) | sed -e '' $$t; \
  137.     fi; \
  138.   fi`
  139.  
  140. AS_FOR_TARGET = ` \
  141.   if [ -f $${rootme}/gas/Makefile ] ; then \
  142.     echo $${rootme}/gas/as.new ; \
  143.   else \
  144.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  145.       echo $(AS); \
  146.     else \
  147.        t='$(program_transform_name)'; echo as | sed -e '' $$t ; \
  148.     fi; \
  149.   fi`
  150.  
  151. AR_FOR_TARGET = ` \
  152.   if [ -f $${rootme}/binutils/ar ] ; then \
  153.     echo $${rootme}/binutils/ar ; \
  154.   else \
  155.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  156.       echo $(AR); \
  157.     else \
  158.        t='$(program_transform_name)'; echo ar | sed -e '' $$t ; \
  159.     fi; \
  160.   fi`
  161.  
  162. RANLIB_FOR_TARGET = ` \
  163.   if [ -f $${rootme}/binutils/ranlib ] ; then \
  164.     echo $${rootme}/binutils/ranlib ; \
  165.   else \
  166.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  167.       echo $(RANLIB); \
  168.     else \
  169.        t='$(program_transform_name)'; echo ranlib | sed -e '' $$t ; \
  170.     fi; \
  171.   fi`
  172.  
  173. NM_FOR_TARGET = ` \
  174.   if [ -f $${rootme}/binutils/Makefile ] ; then \
  175.     echo $${rootme}/binutils/nm ; \
  176.   else \
  177.     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
  178.       echo $(NM); \
  179.     else \
  180.        t='$(program_transform_name)'; echo nm | sed -e '' $$t ; \
  181.     fi; \
  182.   fi`
  183.  
  184. # FIXME: This is badly named.
  185. XTRAFLAGS = ` \
  186.   if [ -f $${rootme}/gcc/Makefile ] ; then \
  187.     if [ -f $${rootme}/newlib/Makefile ] ; then \
  188.       echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
  189.     else \
  190.       echo -I$${rootme}/gcc/include ; \
  191.     fi ; \
  192.   else \
  193.      echo ; \
  194.   fi`
  195.  
  196. #### host and target specific makefile fragments come in here.
  197. ###
  198.  
  199. # Flags to pass down to all sub-makes.
  200. # Please keep these in alphabetical order.
  201. BASE_FLAGS_TO_PASS = \
  202.     "AR_FLAGS=$(AR_FLAGS)" \
  203.     "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
  204.     "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
  205.     "BISON=$(BISON)" \
  206.     "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
  207.     "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
  208.     "CFLAGS=$(CFLAGS)" \
  209.     "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
  210.     "CXXFLAGS=$(CXXFLAGS)" \
  211.     "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
  212.     "GCC_FOR_TARGET=$(CC_FOR_TARGET)" \
  213.     "INSTALL=$(INSTALL)" \
  214.     "INSTALL_DATA=$(INSTALL_DATA)" \
  215.     "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  216.     "INSTALL_XFORM=$(INSTALL_XFORM)" \
  217.     "LDFLAGS=$(LDFLAGS)" \
  218.     "LEX=$(LEX)" \
  219.     "M4=$(M4)" \
  220.     "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
  221.     "MUNCH_NM=$(MUNCH_NM)" \
  222.     "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
  223.     "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
  224.     "SHELL=$(SHELL)" \
  225.     "EXPECT=$(EXPECT)" \
  226.     "RUNTEST=$(RUNTEST)" \
  227.     "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
  228.     "XTRAFLAGS_FOR_TARGET=$(XTRAFLAGS)" \
  229.     "YACC=$(BISON)" \
  230.     "exec_prefix=$(exec_prefix)" \
  231.     "prefix=$(prefix)" \
  232.     "tooldir=$(tooldir)" 
  233.  
  234. # Flags to pass down to most sub-makes, in which we're building with
  235. # the host environment.
  236. # If any variables are added here, they must be added to do-*, below.
  237. EXTRA_HOST_FLAGS = \
  238.     'AR=$(AR)' \
  239.     'AS=$(AS)' \
  240.     'CC=$(CC)' \
  241.     'CXX=$(CXX)' \
  242.     'NM=$(NM)' \
  243.     'RANLIB=$(RANLIB)' \
  244.     'XTRAFLAGS='
  245.  
  246. FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
  247.  
  248. # Flags that are concerned with the location of the X11 include files
  249. # and library files
  250. X11_FLAGS_TO_PASS = \
  251.     "X11_INCLUDE_FLAGS=$(X11_INCLUDE_FLAGS)" \
  252.     "X11_LIB_FLAGS=$(X11_LIB_FLAGS)" \
  253.     "X11_LIB=$(X11_LIB)"
  254.  
  255. # Flags to pass down to makes which are built with the target environment.
  256. # The double $ decreases the length of the command line; the variables
  257. # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
  258. # If any variables are added here, they must be added to do-*, below.
  259. EXTRA_TARGET_FLAGS = \
  260.     'AR=$$(AR_FOR_TARGET)' \
  261.     'AS=$$(AS_FOR_TARGET)' \
  262.     'CC=$$(CC_FOR_TARGET)' \
  263.     'CXX=$$(CXX_FOR_TARGET)' \
  264.     'NM=$$(NM_FOR_TARGET)' \
  265.     'RANLIB=$$(RANLIB_FOR_TARGET)' \
  266.     'XTRAFLAGS=$$(XTRAFLAGS_FOR_TARGET)'
  267.  
  268. TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
  269.  
  270. # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
  271. # unfortunately needs the native compiler and the target ar and
  272. # ranlib.
  273. # If any variables are added here, they must be added to do-*, below.
  274. # The HOST_* variables are a special case, which are used for the gcc
  275. # cross-building scheme.
  276. HOST_CC = $(CC_FOR_BUILD)
  277. HOST_PREFIX = 
  278. HOST_PREFIX_1 = loser-
  279. EXTRA_GCC_FLAGS = \
  280.     'AR=$$(AR_FOR_TARGET)' \
  281.     'AS=$(AS)' \
  282.     'CC=$(CC)' \
  283.     'CXX=$(CXX)' \
  284.     'HOST_CC=$(CC_FOR_BUILD)' \
  285.     'HOST_PREFIX=$(HOST_PREFIX)' \
  286.     'HOST_PREFIX_1=$(HOST_PREFIX_1)' \
  287.     'NM=$(NM)' \
  288.     'RANLIB=$$(RANLIB_FOR_TARGET)' \
  289.     'XTRAFLAGS='
  290.  
  291. GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS)
  292.  
  293. # This is a list of the targets for all of the modules which are compiled
  294. # using $(FLAGS_TO_PASS).
  295. ALL_MODULES = \
  296.     all-autoconf \
  297.     all-bfd \
  298.     all-binutils \
  299.     all-byacc \
  300.     all-cvs \
  301.     all-dejagnu \
  302.     all-diff \
  303.     all-dosutils \
  304.     all-etc \
  305.     all-fileutils \
  306.     all-find \
  307.     all-flex \
  308.     all-gas \
  309.     all-gawk \
  310.     all-gdb \
  311.     all-gprof \
  312.     all-grep \
  313.     all-gzip \
  314.     all-hello \
  315.     all-indent \
  316.     all-ispell \
  317.     all-ld \
  318.     all-libiberty \
  319.     all-m4 \
  320.     all-make \
  321.     all-mmalloc \
  322.     all-opcodes \
  323.     all-pagas \
  324.     all-patch \
  325.     all-prms \
  326.     all-rcs \
  327.     all-readline \
  328.     all-release \
  329.     all-recode \
  330.     all-sed \
  331.     all-send-pr \
  332.     all-shellutils \
  333.     all-sim \
  334.     all-tar \
  335.     all-tcl \
  336.     all-texinfo \
  337.     all-textutils \
  338.     all-tgas \
  339.     all-time \
  340.     all-uudecode \
  341.     all-wdiff
  342.  
  343. # This is a list of the check targets for all of the modules which are
  344. # compiled using $(FLAGS_TO_PASS).
  345. CHECK_MODULES = \
  346.     check-autoconf \
  347.     check-bfd \
  348.     check-binutils \
  349.     check-byacc \
  350.     check-cvs \
  351.     check-dejagnu \
  352.     check-diff \
  353.     check-etc \
  354.     check-fileutils \
  355.     check-find \
  356.     check-flex \
  357.     check-gas \
  358.     check-gawk \
  359.     check-gdb \
  360.     check-gprof \
  361.     check-grep \
  362.     check-gzip \
  363.     check-hello \
  364.     check-indent \
  365.     check-ispell \
  366.     check-ld \
  367.     check-libiberty \
  368.     check-m4 \
  369.     check-make \
  370.     check-mmcheckoc \
  371.     check-opcodes \
  372.     check-pagas \
  373.     check-patch \
  374.     check-prms \
  375.     check-rcs \
  376.     check-readline \
  377.     check-recode \
  378.     check-sed \
  379.     check-send-pr \
  380.     check-shellutils \
  381.     check-sim \
  382.     check-tar \
  383.     check-tcl \
  384.     check-texinfo \
  385.     check-textutils \
  386.     check-tgas \
  387.     check-time \
  388.     check-uudecode \
  389.     check-wdiff
  390.  
  391. # This is a list of the install targets for all of the modules which are
  392. # compiled using $(FLAGS_TO_PASS).
  393. INSTALL_MODULES = \
  394.     install-autoconf \
  395.     install-bfd \
  396.     install-binutils \
  397.     install-byacc \
  398.     install-cvs \
  399.     install-dejagnu \
  400.     install-diff \
  401.     install-etc \
  402.     install-fileutils \
  403.     install-find \
  404.     install-flex \
  405.     install-gas \
  406.     install-gawk \
  407.     install-gdb \
  408.     install-glob \
  409.     install-gprof \
  410.     install-grep \
  411.     install-gzip \
  412.     install-hello \
  413.     install-indent \
  414.     install-ispell \
  415.     install-ld \
  416.     install-libiberty \
  417.     install-m4 \
  418.     install-make \
  419.     install-mmalloc \
  420.     install-opcodes \
  421.     install-pagas \
  422.     install-patch \
  423.     install-prms \
  424.     install-rcs \
  425.     install-readline \
  426.     install-recode \
  427.     install-sed \
  428.     install-send-pr \
  429.     install-shellutils \
  430.     install-sim \
  431.     install-tar \
  432.     install-tcl \
  433.     install-textutils \
  434.     install-tgas \
  435.     install-time \
  436.     install-uudecode \
  437.     install-wdiff
  438.  
  439. # This is a list of the targets for all of the modules which are compiled
  440. # using $(X11_FLAGS_TO_PASS).
  441. ALL_X11_MODULES = \
  442.     all-emacs \
  443.     all-expect \
  444.     all-gash \
  445.     all-tclX \
  446.     all-tk
  447.  
  448. # This is a list of the check targets for all of the modules which are
  449. # compiled using $(X11_FLAGS_TO_PASS).
  450. CHECK_X11_MODULES = \
  451.     check-emacs \
  452.     check-expect \
  453.     check-gash \
  454.     check-tclX \
  455.     check-tk
  456.  
  457. # This is a list of the install targets for all the modules which are
  458. # compiled using $(X11_FLAGS_TO_PASS).
  459. INSTALL_X11_MODULES = \
  460.     install-emacs \
  461.     install-expect \
  462.     install-gash \
  463.     install-tclX \
  464.     install-tk
  465.  
  466. # This is a list of the targets for all of the modules which are compiled
  467. # using $(TARGET_FLAGS_TO_PASS).
  468. ALL_TARGET_MODULES = \
  469.     all-libio \
  470.     all-libg++ \
  471.     all-newlib \
  472.     all-xiberty
  473.  
  474. # This is a list of the check targets for all of the modules which are
  475. # compiled using $(TARGET_FLAGS_TO_PASS).
  476. CHECK_TARGET_MODULES = \
  477.     check-libio \
  478.     check-libg++ \
  479.     check-newlib \
  480.     check-xiberty
  481.  
  482. # This is a list of the install targets for all of the modules which are
  483. # compiled using $(TARGET_FLAGS_TO_PASS).
  484. INSTALL_TARGET_MODULES = \
  485.     install-libio \
  486.     install-libg++ \
  487.     install-newlib \
  488.     install-xiberty
  489.  
  490. # This is a shell case of all modules which are compiled using
  491. # $(TARGET_FLAGS_TO_PASS), used in the do-X rule.
  492. TARGET_LIBS = libio | libg++ | newlib | xiberty
  493.  
  494. # The first rule in the file had better be this one.  Don't put any above it.
  495. all: all.normal
  496. .PHONY: all
  497.  
  498. # The target built for a native build.
  499. .PHONY: all.normal
  500. all.normal: \
  501.     $(ALL_MODULES) \
  502.     $(ALL_TARGET_MODULES) \
  503.     $(ALL_X11_MODULES) \
  504.     all-gcc
  505.  
  506. # Do a target for all the subdirectories.  A ``make do-X'' will do a
  507. # ``make X'' in all subdirectories (because, in general, there is a
  508. # dependency (below) of X upon do-X, a ``make X'' will also do this,
  509. # but it may do additional work as well).
  510. # This target ensures that $(BASE_FLAGS_TO_PASS) appears only once,
  511. # because it is so large that it can easily overflow the command line
  512. # length limit on some systems.
  513. DO_X = \
  514.     do-clean \
  515.     do-distclean \
  516.     do-dvi \
  517.     do-info \
  518.     do-install-info \
  519.     do-installcheck \
  520.     do-mostlyclean \
  521.     do-realclean
  522. .PHONY: $(DO_X)
  523. $(DO_X):
  524.     @target=`echo $@ | sed -e 's/^do-//'`; \
  525.     rootme=`pwd`; export rootme; \
  526.     srcroot=`cd $(srcdir); pwd`; export srcroot; \
  527.     for i in $(SUBDIRS); do \
  528.       if [ -f ./$$i/Makefile ]; then \
  529.         case $$i in \
  530.         $(TARGET_LIBS) ) \
  531.           for flag in $(EXTRA_TARGET_FLAGS); do \
  532.         eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
  533.           done; \
  534.           ;; \
  535.         gcc) \
  536.           for flag in $(EXTRA_GCC_FLAGS); do \
  537.         eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
  538.           done; \
  539.           ;; \
  540.         *) \
  541.           for flag in $(EXTRA_HOST_FLAGS); do \
  542.         eval `echo "$$flag" | sed -e "s|^\(.*\)=\(.*\)|\1='\2'|"`; \
  543.           done; \
  544.           ;; \
  545.         esac ; \
  546.         export AR AS CC CXX NM RANLIB XTRAFLAGS; \
  547.         if (cd ./$$i; \
  548.             $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
  549.             "CC=$${CC}" "CXX=$${CXX}" "NM=$${NM}" \
  550.             "RANLIB=$${RANLIB}" "XTRAFLAGS=$${XTRAFLAGS}" \
  551.             $${target}); \
  552.         then true; else exit 1; fi; \
  553.       else true; fi; \
  554.     done
  555.  
  556. # Here are the targets which correspond to the do-X targets.
  557.  
  558. .PHONY: info installcheck dvi install-info
  559. .PHONY: clean distclean mostlyclean realclean local-clean local-distclean
  560. info: do-info
  561. installcheck: do-installcheck
  562. dvi: do-dvi
  563.  
  564. install-info: do-install-info dir.info
  565.     srcroot=`cd $(srcdir); pwd`; export srcroot; \
  566.     if [ -f dir.info ] ; then \
  567.       $(INSTALL_DATA) dir.info $(infodir)/dir.info ; \
  568.     else true ; fi
  569.  
  570. local-clean:
  571.     -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E
  572.  
  573. local-distclean:
  574.     -rm -f Makefile config.status
  575.  
  576. clean: do-clean local-clean
  577. mostlyclean: do-mostlyclean local-clean
  578. distclean: do-distclean local-clean local-distclean
  579. realclean: do-realclean local-clean local-distclean
  580.  
  581. # Check target.
  582.  
  583. .PHONY: check
  584. check: $(CHECK_MODULES) \
  585.     $(CHECK_TARGET_MODULES) \
  586.     $(CHECK_X11_MODULES) \
  587.     check-gcc
  588.  
  589. # Installation targets.
  590.  
  591. .PHONY: install uninstall vault-install
  592. install: $(INSTALL_TARGET) 
  593.  
  594. uninstall:
  595.     @echo "the uninstall target is not supported in this tree"
  596.  
  597. vault-install:
  598.     @if [ -f ./release/vault-install ] ; then \
  599.       ./release/vault-install $(host_alias) $(target_alias) ; \
  600.     else \
  601.       true ; \
  602.     fi
  603.  
  604. .PHONY: install.all
  605. install.all: install-no-fixedincludes
  606.     @if [ -f ./gcc/Makefile ] ; then \
  607.         rootme=`pwd` ; export rootme ; \
  608.         (cd ./gcc; \
  609.         $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
  610.     else \
  611.         true ; \
  612.     fi
  613.  
  614. # install-no-fixedincludes is used because Cygnus can not distribute
  615. # the fixed header files.
  616. .PHONY: install-no-fixedincludes
  617. install-no-fixedincludes: \
  618.     install-dirs \
  619.     $(INSTALL_MODULES) \
  620.     $(INSTALL_TARGET_MODULES) \
  621.     $(INSTALL_X11_MODULES) \
  622.     gcc-no-fixedincludes 
  623.  
  624. # Install the gcc headers files, but not the fixed include files,
  625. # which Cygnus is not allowed to distribute.  This rule is very
  626. # dependent on the workings of the gcc Makefile.in.
  627. .PHONY: gcc-no-fixedincludes
  628. gcc-no-fixedincludes:
  629.     @if [ -f ./gcc/Makefile ]; then \
  630.       rm -rf gcc/tmp-include; \
  631.       mv gcc/include gcc/tmp-include 2>/dev/null; \
  632.       mkdir gcc/include; \
  633.       cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
  634.       touch gcc/stmp-fixinc gcc/stmp-fixproto; \
  635.       rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
  636.       rootme=`pwd`; export rootme; \
  637.       srcroot=`cd $(srcdir); pwd` ; export srcroot; \
  638.       (cd ./gcc; \
  639.        $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
  640.       rm -rf gcc/include; \
  641.       mv gcc/tmp-include gcc/include 2>/dev/null; \
  642.     else true; fi
  643.  
  644. # This rule is used to build the modules which use FLAGS_TO_PASS.  To
  645. # build a target all-X means to cd to X and make all.
  646. # all-glob is handled specially because it doesn't actually build.
  647. .PHONY: $(ALL_MODULES) all-glob
  648. $(ALL_MODULES) all-glob:
  649.     @dir=`echo $@ | sed -e 's/all-//'`; \
  650.     if [ -f ./$${dir}/Makefile ] ; then \
  651.       rootme=`pwd`; export rootme; \
  652.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  653.       (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
  654.     else \
  655.       true; \
  656.     fi
  657.  
  658. # This rule is used to check the modules which use FLAGS_TO_PASS.  To
  659. # build a target check-X means to cd to X and make all.
  660. .PHONY: $(CHECK_MODULES) 
  661. $(CHECK_MODULES):
  662.     @dir=`echo $@ | sed -e 's/check-//'`; \
  663.     if [ -f ./$${dir}/Makefile ] ; then \
  664.       rootme=`pwd`; export rootme; \
  665.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  666.       (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
  667.     else \
  668.       true; \
  669.     fi
  670.  
  671. # This rule is used to install the modules which use FLAGS_TO_PASS.
  672. # To build a target install-X means to cd to X and make install.
  673. .PHONY: $(INSTALL_MODULES)
  674. $(INSTALL_MODULES): install-dirs
  675.     @dir=`echo $@ | sed -e 's/install-//'`; \
  676.     if [ -f ./$${dir}/Makefile ] ; then \
  677.       rootme=`pwd`; export rootme; \
  678.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  679.       (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
  680.     else \
  681.       true; \
  682.     fi
  683.  
  684. # This rule is used to build the modules which use TARGET_FLAGS_TO_PASS.
  685. # To build a target all-X means to cd to X and make all.
  686. .PHONY: $(ALL_TARGET_MODULES)
  687. $(ALL_TARGET_MODULES):
  688.     @dir=`echo $@ | sed -e 's/all-//'`; \
  689.     if [ -f ./$${dir}/Makefile ] ; then \
  690.       rootme=`pwd`; export rootme; \
  691.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  692.       (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
  693.     else \
  694.       true; \
  695.     fi
  696.  
  697. # This rule is used to check the modules which use TARGET_FLAGS_TO_PASS.
  698. # To build a target install-X means to cd to X and make install.
  699. .PHONY: $(CHECK_TARGET_MODULES)
  700. $(CHECK_TARGET_MODULES):
  701.     @dir=`echo $@ | sed -e 's/check-//'`; \
  702.     if [ -f ./$${dir}/Makefile ] ; then \
  703.       rootme=`pwd`; export rootme; \
  704.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  705.       (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) check); \
  706.     else \
  707.       true; \
  708.     fi
  709.  
  710. # This rule is used to install the modules which use
  711. # TARGET_FLAGS_TO_PASS.  To build a target install-X means to cd to X
  712. # and make install.
  713. .PHONY: $(INSTALL_TARGET_MODULES)
  714. $(INSTALL_TARGET_MODULES): install-dirs
  715.     @dir=`echo $@ | sed -e 's/install-//'`; \
  716.     if [ -f ./$${dir}/Makefile ] ; then \
  717.       rootme=`pwd`; export rootme; \
  718.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  719.       (cd $${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
  720.     else \
  721.       true; \
  722.     fi
  723.  
  724. # This rule is used to build the modules which use X11_FLAGS_TO_PASS.
  725. # To build a target all-X means to cd to X and make all.
  726. .PHONY: $(ALL_X11_MODULES)
  727. $(ALL_X11_MODULES):
  728.     @dir=`echo $@ | sed -e 's/all-//'`; \
  729.     if [ -f ./$${dir}/Makefile ] ; then \
  730.       rootme=`pwd`; export rootme; \
  731.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  732.       (cd $${dir}; \
  733.        $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) all); \
  734.     else \
  735.       true; \
  736.     fi
  737.  
  738. # This rule is used to check the modules which use X11_FLAGS_TO_PASS.
  739. # To build a target check-X means to cd to X and make all.
  740. .PHONY: $(CHECK_X11_MODULES)
  741. $(CHECK_X11_MODULES):
  742.     @dir=`echo $@ | sed -e 's/check-//'`; \
  743.     if [ -f ./$${dir}/Makefile ] ; then \
  744.       rootme=`pwd`; export rootme; \
  745.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  746.       (cd $${dir}; \
  747.        $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check); \
  748.     else \
  749.       true; \
  750.     fi
  751.  
  752. # This rule is used to install the modules which use X11_FLAGS_TO_PASS.
  753. # To build a target install-X means to cd to X and make install.
  754. .PHONY: $(INSTALL_X11_MODULES)
  755. $(INSTALL_X11_MODULES):
  756.     @dir=`echo $@ | sed -e 's/install-//'`; \
  757.     if [ -f ./$${dir}/Makefile ] ; then \
  758.       rootme=`pwd`; export rootme; \
  759.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  760.       (cd $${dir}; \
  761.        $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install); \
  762.     else \
  763.       true; \
  764.     fi
  765.  
  766. # gcc is the only module which uses GCC_FLAGS_TO_PASS.
  767. .PHONY: all-gcc
  768. all-gcc:
  769.     @if [ -f ./gcc/Makefile ] ; then \
  770.       rootme=`pwd`; export rootme; \
  771.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  772.       (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) all); \
  773.     else \
  774.       true; \
  775.     fi
  776.  
  777. .PHONY: check-gcc
  778. check-gcc:
  779.     @if [ -f ./gcc/Makefile ] ; then \
  780.       rootme=`pwd`; export rootme; \
  781.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  782.       (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) check); \
  783.     else \
  784.       true; \
  785.     fi
  786.  
  787. .PHONY: install-gcc
  788. install-gcc:
  789.     @if [ -f ./gcc/Makefile ] ; then \
  790.       rootme=`pwd`; export rootme; \
  791.       srcroot=`cd $(srcdir); pwd`; export srcroot; \
  792.       (cd gcc; $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
  793.     else \
  794.       true; \
  795.     fi
  796.  
  797. # This is a list of inter-dependencies among modules.
  798. all-autoconf: all-m4
  799. all-bfd:
  800. all-binutils: all-libiberty all-opcodes all-bfd all-flex
  801. all-byacc:
  802. all-cvs:
  803. all-dejagnu:
  804. all-diff: all-libiberty
  805. all-emacs:
  806. all-etc:
  807. all-expect: all-tcl all-tk
  808. all-fileutils: all-libiberty
  809. all-find:
  810. all-flex: all-libiberty all-byacc
  811. all-gas: all-libiberty all-opcodes all-bfd
  812. all-gash: all-tcl
  813. all-gawk:
  814. all-gcc: all-libiberty all-byacc all-binutils all-gas all-pagas
  815. all-gdb: all-libiberty all-opcodes all-bfd all-mmalloc all-readline all-glob all-byacc all-sim
  816. all-glob:
  817. all-gprof: all-libiberty all-bfd
  818. all-grep: all-libiberty
  819. all-gzip: all-libiberty
  820. all-hello: all-libiberty
  821. all-indent:
  822. all-ispell: all-emacs
  823. all-ld: all-libiberty all-bfd all-byacc all-flex
  824. all-libg++: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib all-libio
  825. all-libio: all-gas all-pagas all-ld all-gcc all-xiberty all-newlib 
  826. all-libiberty:
  827. all-m4: all-libiberty
  828. all-make: all-libiberty
  829. all-mmalloc:
  830. all-newlib: all-binutils all-gas all-pagas all-gcc
  831. all-opcodes: all-bfd
  832. all-patch:
  833. all-prms: all-libiberty
  834. all-rcs:
  835. all-readline:
  836. all-recode: all-libiberty
  837. all-sed: all-libiberty
  838. all-send-pr: all-prms
  839. all-shellutils:
  840. all-sim: all-libiberty all-bfd
  841. all-tar: all-libiberty
  842. all-tcl:
  843. all-tclX: all-tcl all-tk
  844. all-tk: all-tcl
  845. all-texinfo: all-libiberty
  846. all-textutils:
  847. all-tgas: all-libiberty all-bfd
  848. all-time:
  849. all-wdiff:
  850. all-uudecode: all-libiberty
  851. all-xiberty: all-gcc all-newlib
  852.  
  853. ### other supporting targets
  854.  
  855. MAKEDIRS= \
  856.     $(prefix) \
  857.     $(exec_prefix) \
  858.     $(tooldir)
  859.  
  860. .PHONY: install-dirs
  861. install-dirs:
  862.     @for i in $(MAKEDIRS) ; do \
  863.         echo Making $$i... ; \
  864.         parent=`echo $$i | sed -e 's@/[^/]*$$@@' | sed -e 's@^$$@/@'`; \
  865.         if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi ; \
  866.         if [ ! -d $$i ] ; then \
  867.             if mkdir $$i ; then \
  868.                 true ; \
  869.             else \
  870.                 exit 1 ; \
  871.             fi ; \
  872.         else \
  873.             true ; \
  874.         fi ; \
  875.     done
  876.  
  877.  
  878. dir.info: do-install-info
  879.     if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
  880.       $(srcdir)/texinfo/gen-info-dir $(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
  881.       mv -f dir.info.new dir.info ; \
  882.     else true ; \
  883.     fi
  884.  
  885. dist:
  886.     @echo "Building a full distribution of this tree isn't done"
  887.     @echo "via 'make dist'.  Check out the etc/ subdirectory" 
  888.  
  889. etags tags: TAGS
  890.  
  891. TAGS:
  892.     etags `$(MAKE) ls`
  893.  
  894. ls:
  895.     @echo Makefile
  896.     @for i in $(SUBDIRS); \
  897.     do \
  898.         (cd $$i; \
  899.             pwd=`pwd`; \
  900.             wd=`basename $$pwd`; \
  901.             for j in `$(MAKE) ls`; \
  902.             do \
  903.                 echo $$wd/$$j; \
  904.             done) \
  905.     done
  906.  
  907. # with the gnu make, this is done automatically.
  908.  
  909. Makefile: Makefile.in configure.in $(host_makefile_frag) $(target_makefile_frag)
  910.     $(SHELL) ./config.status
  911.  
  912. #
  913. # Support for building net releases
  914.  
  915. # Files in devo used in any net release.
  916. # ChangeLog omitted because it may refer to files which are not in this
  917. # distribution (perhaps it would be better to include it anyway).
  918. DEVO_SUPPORT= README Makefile.in configure configure.in \
  919.     config.guess config.sub config move-if-change \
  920.     COPYING COPYING.LIB install.sh
  921.  
  922. # Files in devo/etc used in any net release.
  923. # ChangeLog omitted because it may refer to files which are not in this
  924. # distribution (perhaps it would be better to include it anyway).
  925. ETC_SUPPORT= Makefile.in cfg-paper.texi configure.in configure.man \
  926.     configure.texi standards.texi make-stds.texi
  927.  
  928. GDB_SUPPORT_DIRS= bfd include libiberty mmalloc opcodes readline glob sim
  929. GDB_SUPPORT_FILES= $(GDB_SUPPORT_DIRS)
  930.  
  931. .PHONY: setup-dirs-gdb gdb.tar.gz make-gdb.tar.gz
  932. setup-dirs-gdb:
  933.     ./configure sun4
  934.     $(MAKE) clean
  935.     ./configure -rm sun4
  936.     chmod og=u `find etc $(DEVO_SUPPORT) $(GDB_SUPPORT_FILES) -print`
  937.  
  938. gdb.tar.gz: setup-dirs-gdb
  939.     (cd gdb; $(MAKE) -f Makefile.in make-proto-gdb.dir BISON="byacc")
  940.     (cd gdb; $(MAKE) -f Makefile.in make-proto-testsuite.dir)
  941.     $(MAKE) $(MFLAGS) -f Makefile.in make-gdb.tar.gz
  942.  
  943. make-gdb.tar.gz: $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS) gdb texinfo/texinfo.tex
  944.     rm -rf proto-toplev; mkdir proto-toplev
  945.     ln -s ../gdb/proto-gdb.dir proto-toplev/gdb
  946.     (cd proto-toplev; for i in $(DEVO_SUPPORT) $(GDB_SUPPORT_DIRS); do \
  947.         ln -s ../$$i . ; \
  948.     done)
  949.     mkdir proto-toplev/etc
  950.     (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
  951.         ln -s ../../etc/$$i . ; \
  952.     done)
  953.     # Put only one copy (four hard links) of COPYING in the tar file.
  954.     rm                          proto-toplev/bfd/COPYING
  955.     ln proto-toplev/gdb/COPYING proto-toplev/bfd/COPYING
  956.     rm                          proto-toplev/include/COPYING
  957.     ln proto-toplev/gdb/COPYING proto-toplev/include/COPYING
  958.     rm                          proto-toplev/readline/COPYING
  959.     ln proto-toplev/gdb/COPYING proto-toplev/readline/COPYING
  960.  
  961.     # Change the bug reporting address in configure to bug-gdb
  962.     rm proto-toplev/configure
  963.     sed -e 's/configure@cygnus.com/bug-gdb@prep.ai.mit.edu/' \
  964.         <configure >proto-toplev/configure
  965.     chmod a+x proto-toplev/configure
  966.  
  967.     # Take out texinfo and glob from configurable dirs
  968.     rm proto-toplev/configure.in
  969.     sed -e '/^host_tools=/s/texinfo //' \
  970.         -e '/^host_libs=/s/glob //' \
  971.         <configure.in >proto-toplev/configure.in
  972.  
  973.     # Take out texinfo from a few places; make simple BISON=bison line.
  974.     rm proto-toplev/Makefile.in
  975.     sed -e '/^all\.normal: /s/\all-texinfo //' \
  976.         -e '/^    install-texinfo /d' \
  977.         -e '/^BISON = /,/^$$/d' \
  978.         -e '/^# BISON:/s/.*/BISON = bison -y/' \
  979.     <Makefile.in >proto-toplev/Makefile.in
  980.  
  981.     mkdir proto-toplev/texinfo
  982.     ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
  983.     ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
  984.     ln -s ../../texinfo/tex3patch   proto-toplev/texinfo/
  985.     chmod og=u `find proto-toplev -print`
  986.     (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
  987.         echo "==> Making gdb-$$VER.tar.gz"; \
  988.         rm -f gdb-$$VER; ln -s proto-toplev gdb-$$VER; \
  989.         tar cfh - gdb-$$VER \
  990.         | $(GZIPPROG) -v -9 >gdb-$$VER.tar.gz)
  991.  
  992.     # Make the testsuite archive separately.
  993.     ln -s ../../gdb/proto-testsuite.dir/testsuite proto-toplev/gdb/testsuite
  994.     # Blow away the Chill test that requires a Chill compiled executable,
  995.     # since GNU Chill is not yet publically available.
  996.     rm -rf proto-toplev/gdb/testsuite/gdb.t31
  997.  
  998.     # Put a copy of COPYING in the tar file.
  999.     ln proto-toplev/gdb/COPYING proto-toplev/gdb/testsuite/COPYING
  1000.     chmod og=u `find proto-toplev/gdb/testsuite -print`
  1001.     (VER=`sed <gdb/Makefile.in -n 's/VERSION = //p'`; \
  1002.         echo "==> Making gdb-$$VER-testsuite.tar.gz"; \
  1003.         tar cfh - gdb-$$VER/configure gdb-$$VER/config.guess \
  1004.             gdb-$$VER/config.sub gdb-$$VER/move-if-change \
  1005.             gdb-$$VER/gdb/testsuite \
  1006.             | $(GZIPPROG) -v -9 >gdb-$$VER-testsuite.tar.gz)
  1007.  
  1008. # When you use `make setup-dirs' or `make taz' you should always redefine
  1009. # this macro.
  1010. SUPPORT_FILES = list-of-support-files-for-tool-in-question
  1011. # Directories that might want `make diststuff' run.
  1012. DISTSTUFFDIRS= ld gprof gdb libg++ binutils gnats
  1013. # Files where "byacc" (Cygnus version) should be changed to "bison -y" (FSF).
  1014. DISTBISONFILES= binutils/Makefile.in gas/Makefile.in gdb/Makefile.in
  1015. # Directories where "info" should be built.
  1016. DISTDOCDIRS= ld gprof binutils gas bfd libg++ libio gdb gnats send-pr
  1017.  
  1018. .PHONY: taz
  1019.  
  1020. taz: $(DEVO_SUPPORT) $(SUPPORT_FILES) \
  1021.   texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
  1022.     # Make sure "diststuff" files get built properly.
  1023.     for f in $(DISTBISONFILES) ; do \
  1024.       if [ -r $$f ]; then \
  1025.         sed '/^BISON *=.*$$/s/.*/BISON = bison -y/' <$$f >tmp ; \
  1026.         mv -f tmp $$f ; \
  1027.       else true; fi ; \
  1028.     done
  1029.     # Take out texinfo from a few places; make simple BISON=bison line.
  1030.     sed -e '/^all\.normal: /s/\all-texinfo //' \
  1031.         -e '/^    install-texinfo /d' \
  1032.         -e '/^BISON = /,/^$$/d' \
  1033.         -e '/^# BISON:/s/.*/BISON = bison -y/' \
  1034.     <Makefile.in >tmp
  1035.     mv -f tmp Makefile.in
  1036.     #
  1037.     ./configure sun4
  1038.     # Doc files don't change; include them in distribution.
  1039.     for f in $(DISTDOCDIRS) ; do \
  1040.       if [ -r $$f/Makefile ]; then \
  1041.         (cd $$f ; $(MAKE) info) || exit 1 ; \
  1042.       else true ; fi ; \
  1043.     done
  1044.     # Make links, and run "make diststuff" when needed.
  1045.     # The `echo' for setting `p' is to convert all whitespace to spaces.
  1046.     # Then the `case' further below should tell whether $$d is in
  1047.     # DISTSTUFFDIRS.
  1048.     rm -rf proto-toplev ; mkdir proto-toplev
  1049.     set -e ; dirs="$(TOOL) $(DEVO_SUPPORT) $(SUPPORT_FILES)" ; \
  1050.     p=" `echo $(DISTSTUFFDIRS)` " ; \
  1051.     for d in $$dirs ; do \
  1052.       if [ -d $$d ]; then \
  1053.         case " $$p " in \
  1054.         *" $$d "*)    \
  1055.         echo making diststuff in $$d ; \
  1056.         (cd $$d ; pwd ; $(MAKE) diststuff ) || exit 1  ;; \
  1057.         esac ; \
  1058.         if [ -d $$d/proto-$$d.dir ]; then \
  1059.           ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \
  1060.         else \
  1061.           ln -s ../$$d proto-toplev/$$d ; \
  1062.         fi ; \
  1063.       else ln -s ../$$d proto-toplev/$$d ; fi ; \
  1064.     done
  1065.     $(MAKE) distclean
  1066.     #
  1067.     mkdir proto-toplev/etc
  1068.     (cd proto-toplev/etc; for i in $(ETC_SUPPORT); do \
  1069.         ln -s ../../etc/$$i . ; \
  1070.     done)
  1071.     #
  1072.     # Take out texinfo and glob from configurable dirs
  1073.     rm proto-toplev/configure.in
  1074.     sed -e '/^host_tools=/s/texinfo //' \
  1075.         -e '/^host_libs=/s/glob //' \
  1076.         <configure.in >proto-toplev/configure.in
  1077.     #
  1078.     mkdir proto-toplev/texinfo
  1079.     ln -s ../../texinfo/texinfo.tex proto-toplev/texinfo/
  1080.     ln -s ../../texinfo/gpl.texinfo proto-toplev/texinfo/
  1081.     ln -s ../../texinfo/lgpl.texinfo proto-toplev/texinfo/
  1082.     ln -s ../../texinfo/tex3patch   proto-toplev/texinfo/
  1083.     chmod og=u `find . -print`
  1084.     (VER=`sed <$(TOOL)/Makefile.in -n 's/^VERSION *= *//p'`; \
  1085.         echo "==> Making $(TOOL)-$$VER.tar.gz"; \
  1086.         rm -f $(TOOL)-$$VER; ln -s proto-toplev $(TOOL)-$$VER; \
  1087.         tar cfh - $(TOOL)-$$VER \
  1088.         | $(GZIPPROG) -v -9 >$(TOOL)-$$VER.tar.gz )
  1089.  
  1090. TEXINFO_SUPPORT= texinfo/texinfo.tex texinfo/gpl.texinfo texinfo/lgpl.texinfo
  1091. DIST_SUPPORT= $(DEVO_SUPPORT) $(TEXINFO_SUPPORT)
  1092.  
  1093. .PHONY: gas.tar.gz
  1094. GAS_SUPPORT_DIRS= bfd include libiberty opcodes
  1095. gas.tar.gz: $(DIST_SUPPORT) $(GAS_SUPPORT_DIRS) gas
  1096.     $(MAKE) -f Makefile.in taz TOOL=gas \
  1097.         SUPPORT_FILES="$(GAS_SUPPORT_DIRS)"
  1098.  
  1099. # The FSF "binutils" release includes gprof and ld.
  1100. .PHONY: binutils.tar.gz
  1101. BINUTILS_SUPPORT_DIRS= bfd include libiberty opcodes ld gprof
  1102. binutils.tar.gz: $(DIST_SUPPORT) $(BINUTILS_SUPPORT_DIRS) binutils
  1103.     $(MAKE) -f Makefile.in taz TOOL=binutils \
  1104.         SUPPORT_FILES="$(BINUTILS_SUPPORT_DIRS)"
  1105.  
  1106. .PHONY: gas+binutils.tar.gz
  1107. GASB_SUPPORT_DIRS= $(GAS_SUPPORT_DIRS) binutils ld gprof
  1108. gas+binutils.tar.gz: $(DIST_SUPPORT) $(GASB_SUPPORT_DIRS) gas
  1109.     $(MAKE) -f Makefile.in taz TOOL=gas \
  1110.         SUPPORT_FILES="$(GASB_SUPPORT_DIRS)"
  1111.  
  1112. .PHONY: libg++.tar.gz
  1113. LIBGXX_SUPPORT_DIRS=include libio libiberty xiberty
  1114. libg++.tar.gz: $(DIST_SUPPORT) libg++
  1115.     $(MAKE) -f Makefile.in taz TOOL=libg++ \
  1116.         SUPPORT_FILES="$(LIBGXX_SUPPORT_DIRS)"
  1117.  
  1118. GNATS_SUPPORT_DIRS=include libiberty send-pr
  1119. gnats.tar.gz: $(DIST_SUPPORT) $(GNATS_SUPPORT_DIRS) gnats
  1120.     $(MAKE) -f  Makefile.in taz TOOL=gnats \
  1121.         SUPPORT_FILES="$(GNATS_SUPPORT_DIRS)"
  1122.  
  1123. .NOEXPORT:
  1124. MAKEOVERRIDES=
  1125.  
  1126.  
  1127. # end of Makefile.in
  1128.